<div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>搜索</h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <form method="get" class="form-horizontal">

                    <div class="row">

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">订单号</label>
                                <div class="col-sm-8">
                                    <input type="text" name="order_sn" value="{$search['order_sn']}"
                                           class="form-control" placeholder="请输入订单号"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">是否支付</label>
                                <div class="col-sm-8">
                                    <select name="pay_money" class="form-control">
                                        <option value="-1">请选择</option>
                                        <option value="1" {if condition="$payMoney eq 1"}selected{/if}>已支付</option>
                                        <option value="2" {if condition="$payMoney eq 2"}selected{/if}>未支付</option>

                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">订单类型</label>
                                <div class="col-sm-8">
                                    <select name="type" class="form-control">
                                        <option value="-1">请选择</option>
                                        {foreach $type as $key=>$vo}
                                        {if ( $search['type'] == $key ) }
                                        <option value="{$key}" selected>{$vo}</option>
                                        {else /}
                                        <option value="{$key}">{$vo}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">支付方式</label>
                                <div class="col-sm-8">
                                    <select name="pay_type" class="form-control">
                                        <option value="-1">请选择</option>
                                        {foreach $payType as $key=>$vo}
                                        {if ( $search['pay_type'] == $key ) }
                                        <option value="{$key}" selected>{$vo}</option>
                                        {else /}
                                        <option value="{$key}">{$vo}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>

                    </div>

                    <div class="row">

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">语种</label>
                                <div class="col-sm-8">
                                    <select name="lang_id" class="form-control">
                                        <option value="-1">请选择</option>
                                        {foreach $lang as $key=>$vo}
                                        {if ( $search['lang_id'] == $key ) }
                                        <option value="{$key}" selected>{$vo}</option>
                                        {else /}
                                        <option value="{$key}">{$vo}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">教导主任</label>
                                <div class="col-sm-8">
                                    <select name="customer_id" class="form-control">
                                        <option value="-1">请选择</option>
                                        {foreach $customer as $key=>$vo}
                                        {if ( $search['customer_id'] == $key ) }
                                        <option value="{$key}" selected>{$vo}</option>
                                        {else /}
                                        <option value="{$key}">{$vo}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>

                        {if $noCoupon == 0}
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">优惠券名称</label>
                                <div class="col-sm-8">
                                    <input type="text" name="coupon_name" value="{$search['coupon_name']}"
                                           class="form-control" placeholder="请输入优惠券名称"/>
                                </div>
                            </div>
                        </div>
                        {/if}

                    </div>


                    <div class="row">

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">支付开始时间</label>
                                <div class="col-sm-8">
                                    <input type="text" autocomplete="off" value="{$search['start_time']}" name="start_time" class="start-time form-control" placeholder="开始时间">
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">支付结束时间</label>
                                <div class="col-sm-8">
                                    <input type="text" autocomplete="off" value="{$search['end_time']}" name="end_time" class="end-time form-control" placeholder="结束时间">
                                </div>
                            </div>
                        </div>

                        {if $noNickname == 0}
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">用户昵称</label>
                                <div class="col-sm-8">
                                    <input type="text" name="oauth_nickname" value="{$search['oauth_nickname']}"
                                           class="form-control" placeholder="请输入用户昵称"/>
                                </div>
                            </div>
                        </div>
                        {/if}

                    </div>

                    <div class="hr-line-dashed"></div>
                    <div class="row">
                        <div class="col-sm-4 col-sm-offset-1">
                            <button class="btn btn-primary" type="submit">提交</button>
                            <button class="btn btn-white" type="button"><a href="{$cancelUrl}">取消</a></button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>